﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Support
{
    public class ColumnView
    {
        public string clName;
        public string clNameVN;
        public double Percent;
        public string Format;
        public int Align;
        public int iColor;
        public bool IsReadOnly;
        public bool isBit=false ;
        public string Style = "";
        public ColumnView() { }
        //──────────────────────────────────────────────────────────────────────────────────────────
        public ColumnView(string clname, string clnamevn, double per, string format, bool isReadoly)
        {
            clName = clname; Percent = per;
            clNameVN = clnamevn;
            Format = format;
            IsReadOnly = isReadoly;
            Align = 1;
        }
        //──────────────────────────────────────────────────────────────────────────────────────────
        public ColumnView(string clname, string clnamevn, double per, string format, bool isReadoly, int align)
        {
            clName = clname; Percent = per;
            clNameVN = clnamevn;
            Format = format;
            IsReadOnly = isReadoly;
            Align = align;
        }
        //──────────────────────────────────────────────────────────────────────────────────────────
        public ColumnView(string clname, string clnamevn, double per)
        {
            clName = clname; Percent = per;
            clNameVN = clnamevn;
            Format = "";
            IsReadOnly = true;
            Align = 1;
        }
        //──────────────────────────────────────────────────────────────────────────────────────────
        public ColumnView(string clname, string clnamevn,int color, double per)
        {
            clName = clname; Percent = per; iColor = color;
            clNameVN = clnamevn;
            Format = "";
            IsReadOnly = true;
            Align = 1;
        }
        //──────────────────────────────────────────────────────────────────────────────────────────
        public ColumnView(string clname, string clnamevn, double per, string format, bool isReadonly, bool isBitView)
        {
            clName = clname; Percent = per;
            clNameVN = clnamevn;
            Format = format;
            IsReadOnly = isReadonly ;
            isBit = isBitView;
            Align = 1;
        }
        public ColumnView(string clname, string clnamevn, double per, string format, bool isReadonly, bool isBitView,string style)
        {
            clName = clname; Percent = per;
            clNameVN = clnamevn;
            Format = format;
            IsReadOnly = isReadonly;
            isBit = isBitView;
            this.Style = style;
            Align = 1;
        }
        //──────────────────────────────────────────────────────────────────────────────────────────
       
        public ColumnView(string clname, string clnamevn, double per, bool isBitView)
        {
            clName = clname; Percent = per;
            clNameVN = clnamevn;
            Format = "";
            IsReadOnly = true;
            isBit = isBitView;
            Align = 1;
        }
        //──────────────────────────────────────────────────────────────────────────────────────────
        
    }
    public class ColorView
    {
        private int _Status;
        private Brush _color;
        public ColorView()
        {
           
        }
        public int Status
        {
            get { return this._Status; }
            set { this._Status = value; }
        }
        public Brush Color
        {
            get { return this._color; }
            set { this._color = value; }
        }
    }
}
